<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%--
  Created by IntelliJ IDEA.
  User: zhongqiang
  Date: 2020/6/10
  Time: 11:44 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>list</title>
</head>
<body>
    <a href="/demo/add">添加</a>
    <br/>
    <table>
        <tr>
            <td>id</td>
            <td>地址</td>
            <td>姓名</td>
            <td>电话</td>
            <td>操作</td>
        </tr>
        <c:forEach  items="${list}" var="item">
            <tr>
                <td>${item.id}</td>
                <td>${item.address}</td>
                <td>${item.name}</td>
                <td>${item.phone}</td>
                <td>
                    <a href="/demo/edit?id=${item.id}">编辑</a>&nbsp;&nbsp;
                    <a href="/demo/del?id=${item.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
